# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# docker_extc xxxx 执行一个当前正在运行的名为xxxx的容器(docker_exec go_evn  , 实际执行的是docker exec -it  go_evn /bin/bash)
alias docker_exec='_docker_exec(){ docker exec -it  $1 /bin/bash ;}; _docker_exec'
# 使用docker_create xxxx 创建一个名为xxxx的运行容器
alias docker_create='_docker_create(){ docker run --name $1 -it -v `pwd`:/root/workspace --privileged=true docker-registry.qiyi.virtual/portal-process/centos-builder:7.2 /bin/bash ; }; _docker_create'
# 简化ssh root@xxx跳转
alias sc='_ssh_exec(){ ssh root@$1 ; }; _ssh_exec'
